<ti-halfmodal #modal id="halfmodal-beforehide" (beforeHide)="beforeHide()">
  <p>这个弹窗会朝外通知 beforeHide 事件</p>
  <br />
  <button id="halfmodal-beforehide-hide" tiButton (click)="hide()">立刻关闭</button>
</ti-halfmodal>

<button id="halfmodal-beforehide-show" tiButton (click)="show()">打开半屏弹窗</button>
